﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

namespace ScrumTable.Common.Threading
{
    /// <summary>
    /// Executes a message queue entry and consumes the given data object.
    /// </summary>
    /// <typeparam name="TData">Object which will be provided by the queue.</typeparam>
    public interface ICall<TData>
    {
        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        /// <summary>
        /// Executes the queued item.
        /// </summary>
        /// <param name="data">Contains the data which is required to execute a worker item.</param>
        void Execute(TData data);

        #endregion
    }
}
